package com.vcc.service.service;

import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.ClientUserParam;
import com.vcc.data.entity.Role;

import java.util.List;

public interface ClientUserParamService extends IService<ClientUserParam> {

    List<ClientUserParam> listByUserId(Long userId);

    ClientUserParam getByUserIdAndParamId(Long userId, Long clientParamId);

    Boolean existsByUserIdAndParamId(Long userId, Long clientParamId);

    Boolean updateValue(Long id, String value);

    Integer sumByUserIdAndRole(Long userId, Role role);

}
